package com.myworld.ucenter.web;

import com.myworld.framework.domain.ucenter.MyUser;
import com.myworld.framework.domain.ucenter.ext.MyUserExt;
import com.myworld.ucenter.service.MyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ucenter")
public class UcenterController {
    @Autowired
    private MyUserService myUserService;

    @GetMapping("/getuserext")
    public MyUserExt getUserExt(@RequestParam("username") String username){
        return myUserService.getUserExt(username);
    }
}
